package com.hk.service.impl;

import org.springframework.stereotype.Service;

import com.hk.commons.LongId;
import com.hk.commons.entity.ProductVer;
import com.hk.dao.base.impl.BaseServiceImpl;
import com.hk.service.IProductVer;

@Service
public class ProductVerImpl extends BaseServiceImpl<ProductVer> implements
		IProductVer {

	@Override
	public ProductVer findById(long id) {

		return super.getById(id);
	}

	@Override
	public Long add(ProductVer model) {
		Long id = LongId.get();
		model.setId(id);
		model.setCts(System.currentTimeMillis());
		super.save(model);
		return id;
	}

}
